/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/10/2022 03:48:02 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "IOuterUser.h"
#include "IUserInfo.h"
#include "UserInfo.h"
#include "OuterUserInfo.h"
void DoIt() {
    IUserInfo* pYourGirl = new CUserInfo();

    for (int i = 0; i < 101; i += 20) {
        pYourGirl->GetMobileNumber();
    }

    delete pYourGirl;
}

void NowDoIt() {
    IUserInfo* pYourGirl = new COuterUserInfo();

    for (int i = 0; i < 101; i += 20) {
        pYourGirl->GetMobileNumber();
    }

    delete pYourGirl;
}

int main() {
    DoIt();
    NowDoIt();
    return 0;
}
